--翩起浊意
local pianqizhuoyi = fk.CreateSkill {
    name = "mcdh_pianqizhuoyi",
    tags={Skill.Wake}
}

local U = require "packages/utility/utility"
local lib = require "packages/mcdh/lib"

pianqizhuoyi:addEffect(fk.EventPhaseStart,{
    can_trigger = function(self, event, target, player, data)
        return player:hasSkill(self) and player:getMark("mcdh_ammo") >=2  and target.phase == Player.Finish and player:usedSkillTimes(self.name, Player.HistoryGame) == 0
    end,
    on_cost  = function(self, event, target, player, data)
        return true
    end,
    on_use = function(self, event, target, player, data)
        local room = player.room
        lib.LoseAmmo(player,player,2,self.name)
        room:damage({
            from = player,
            to = target,
            damage = 1,
            damageType = fk.ThunderDamage,
            skillName = self.name,
        })
        player.room:handleAddLoseSkills(player, "mcdh_qiluxundao", nil, false, true)
    end,
})

Fk:loadTranslationTable {
    ["mcdh_pianqizhuoyi"] = "浊意",
    [":mcdh_pianqizhuoyi"] = "『翩起浊意』<br>觉醒技，装填技（2），每名角色的结束阶段，你对其造成1点雷电伤害，然后获得技能〖寻心〗。",
}


return pianqizhuoyi